package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_col`", catalog="id")
public class SysCol extends BaseEntity<SysCol> {

	private Long id; // 主键ID
	private Long menuId; // 所属菜单ID
	private String name; // 字段名称
	private String code; // 字段编码
	private Integer sortNo; // 字段显示序号
	private Integer authType; // 权限类型
	private String frontType; // 字段类型
	private Integer frontEdit; // 前台是否编辑
	private Integer frontShow; // 前台是否显示
	private Integer frontWidth; // 前台宽度
	private Integer frontFixed; // 前台是否固定
	private Integer frontAlign; // 前台对齐方式
	private Integer frontConditionState; // 前台是否查询
	private String frontConditionType; // 前台条件控件类型
	private String frontConditionRangeType; // 前台条件查询范围类型
	private String frontConditionCode; // 条件查询编码
	private String frontConditionDefault; // 前台查询条件默认值
	private String dictKeyBase; // 字典默认值
	private Integer formLength; // 表单长度，1代表1/3
	private Integer formAddState; // 表单是否新增
	private String formAddType; // 表单新增类型
	private Integer formAddRequired; // 表单新增是否必填
	private Integer formAddReadonly; // 表单新增是否只读
	private Integer formAddHidden; // 表单新增是否隐藏
	private Integer formEditState; // 表单是否编辑
	private String formEditType; // 表单编辑类型
	private Integer formEditHidden; // 表单编辑是否隐藏
	private Integer formEditRequired; // 表单编辑是否必填
	private Integer formEditReadonly; // 表单编辑是否只读
	private Integer importState; // 导入字段状态
	private Integer importSortNo; // 导入字段顺序
	private String modalKey; // 弹出框识别KEY，关联ModalSelector表的NameTable值
	private String modalRelativeCode; // 弹出框联动字段，关联本表Code
	private String modalValueCode; // 弹出框取值字段，关联ModalSelectorField的Code字段
	private String dropdownRequestPath; // 下拉框弹出框请求路径
	private Integer multyFileSourceType; // 多文件控件的来源类型，关联TB_FileInfo的SourceType
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysCol setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMenuId() {
		return menuId;
	}
	public SysCol setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}
	public String getName() {
		return name;
	}
	public SysCol setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public SysCol setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public SysCol setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getAuthType() {
		return authType;
	}
	public SysCol setAuthType(Integer authType) {
		this.authType = authType;
		return this;
	}
	public String getFrontType() {
		return frontType;
	}
	public SysCol setFrontType(String frontType) {
		this.frontType = frontType;
		return this;
	}
	public Integer getFrontEdit() {
		return frontEdit;
	}
	public SysCol setFrontEdit(Integer frontEdit) {
		this.frontEdit = frontEdit;
		return this;
	}
	public Integer getFrontShow() {
		return frontShow;
	}
	public SysCol setFrontShow(Integer frontShow) {
		this.frontShow = frontShow;
		return this;
	}
	public Integer getFrontWidth() {
		return frontWidth;
	}
	public SysCol setFrontWidth(Integer frontWidth) {
		this.frontWidth = frontWidth;
		return this;
	}
	public Integer getFrontFixed() {
		return frontFixed;
	}
	public SysCol setFrontFixed(Integer frontFixed) {
		this.frontFixed = frontFixed;
		return this;
	}
	public Integer getFrontAlign() {
		return frontAlign;
	}
	public SysCol setFrontAlign(Integer frontAlign) {
		this.frontAlign = frontAlign;
		return this;
	}
	public Integer getFrontConditionState() {
		return frontConditionState;
	}
	public SysCol setFrontConditionState(Integer frontConditionState) {
		this.frontConditionState = frontConditionState;
		return this;
	}
	public String getFrontConditionType() {
		return frontConditionType;
	}
	public SysCol setFrontConditionType(String frontConditionType) {
		this.frontConditionType = frontConditionType;
		return this;
	}
	public String getFrontConditionRangeType() {
		return frontConditionRangeType;
	}
	public SysCol setFrontConditionRangeType(String frontConditionRangeType) {
		this.frontConditionRangeType = frontConditionRangeType;
		return this;
	}
	public String getFrontConditionCode() {
		return frontConditionCode;
	}
	public SysCol setFrontConditionCode(String frontConditionCode) {
		this.frontConditionCode = frontConditionCode;
		return this;
	}
	public String getFrontConditionDefault() {
		return frontConditionDefault;
	}
	public SysCol setFrontConditionDefault(String frontConditionDefault) {
		this.frontConditionDefault = frontConditionDefault;
		return this;
	}
	public String getDictKeyBase() {
		return dictKeyBase;
	}
	public SysCol setDictKeyBase(String dictKeyBase) {
		this.dictKeyBase = dictKeyBase;
		return this;
	}
	public Integer getFormLength() {
		return formLength;
	}
	public SysCol setFormLength(Integer formLength) {
		this.formLength = formLength;
		return this;
	}
	public Integer getFormAddState() {
		return formAddState;
	}
	public SysCol setFormAddState(Integer formAddState) {
		this.formAddState = formAddState;
		return this;
	}
	public String getFormAddType() {
		return formAddType;
	}
	public SysCol setFormAddType(String formAddType) {
		this.formAddType = formAddType;
		return this;
	}
	public Integer getFormAddRequired() {
		return formAddRequired;
	}
	public SysCol setFormAddRequired(Integer formAddRequired) {
		this.formAddRequired = formAddRequired;
		return this;
	}
	public Integer getFormAddReadonly() {
		return formAddReadonly;
	}
	public SysCol setFormAddReadonly(Integer formAddReadonly) {
		this.formAddReadonly = formAddReadonly;
		return this;
	}
	public Integer getFormAddHidden() {
		return formAddHidden;
	}
	public SysCol setFormAddHidden(Integer formAddHidden) {
		this.formAddHidden = formAddHidden;
		return this;
	}
	public Integer getFormEditState() {
		return formEditState;
	}
	public SysCol setFormEditState(Integer formEditState) {
		this.formEditState = formEditState;
		return this;
	}
	public String getFormEditType() {
		return formEditType;
	}
	public SysCol setFormEditType(String formEditType) {
		this.formEditType = formEditType;
		return this;
	}
	public Integer getFormEditHidden() {
		return formEditHidden;
	}
	public SysCol setFormEditHidden(Integer formEditHidden) {
		this.formEditHidden = formEditHidden;
		return this;
	}
	public Integer getFormEditRequired() {
		return formEditRequired;
	}
	public SysCol setFormEditRequired(Integer formEditRequired) {
		this.formEditRequired = formEditRequired;
		return this;
	}
	public Integer getFormEditReadonly() {
		return formEditReadonly;
	}
	public SysCol setFormEditReadonly(Integer formEditReadonly) {
		this.formEditReadonly = formEditReadonly;
		return this;
	}
	public Integer getImportState() {
		return importState;
	}
	public SysCol setImportState(Integer importState) {
		this.importState = importState;
		return this;
	}
	public Integer getImportSortNo() {
		return importSortNo;
	}
	public SysCol setImportSortNo(Integer importSortNo) {
		this.importSortNo = importSortNo;
		return this;
	}
	public String getModalKey() {
		return modalKey;
	}
	public SysCol setModalKey(String modalKey) {
		this.modalKey = modalKey;
		return this;
	}
	public String getModalRelativeCode() {
		return modalRelativeCode;
	}
	public SysCol setModalRelativeCode(String modalRelativeCode) {
		this.modalRelativeCode = modalRelativeCode;
		return this;
	}
	public String getModalValueCode() {
		return modalValueCode;
	}
	public SysCol setModalValueCode(String modalValueCode) {
		this.modalValueCode = modalValueCode;
		return this;
	}
	public String getDropdownRequestPath() {
		return dropdownRequestPath;
	}
	public SysCol setDropdownRequestPath(String dropdownRequestPath) {
		this.dropdownRequestPath = dropdownRequestPath;
		return this;
	}
	public Integer getMultyFileSourceType() {
		return multyFileSourceType;
	}
	public SysCol setMultyFileSourceType(Integer multyFileSourceType) {
		this.multyFileSourceType = multyFileSourceType;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysCol setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysCol setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysCol setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysCol sysCol(
		Long menuId,
		String name,
		String code,
		Integer sortNo,
		Integer authType,
		String frontType,
		Integer frontEdit,
		Integer frontShow,
		Integer frontWidth,
		Integer frontFixed,
		Integer frontAlign,
		Integer frontConditionState,
		String frontConditionType,
		String frontConditionRangeType,
		String frontConditionCode,
		String frontConditionDefault,
		String dictKeyBase,
		Integer formLength,
		Integer formAddState,
		String formAddType,
		Integer formAddRequired,
		Integer formAddReadonly,
		Integer formAddHidden,
		Integer formEditState,
		String formEditType,
		Integer formEditHidden,
		Integer formEditRequired,
		Integer formEditReadonly,
		Integer importState,
		Integer importSortNo,
		String modalKey,
		String modalRelativeCode,
		String modalValueCode,
		String dropdownRequestPath,
		Integer multyFileSourceType,
		Integer status
			) {
		SysCol entity = new SysCol();
		entity.setMenuId(menuId);
		entity.setName(name);
		entity.setCode(code);
		entity.setSortNo(sortNo);
		entity.setAuthType(authType);
		entity.setFrontType(frontType);
		entity.setFrontEdit(frontEdit);
		entity.setFrontShow(frontShow);
		entity.setFrontWidth(frontWidth);
		entity.setFrontFixed(frontFixed);
		entity.setFrontAlign(frontAlign);
		entity.setFrontConditionState(frontConditionState);
		entity.setFrontConditionType(frontConditionType);
		entity.setFrontConditionRangeType(frontConditionRangeType);
		entity.setFrontConditionCode(frontConditionCode);
		entity.setFrontConditionDefault(frontConditionDefault);
		entity.setDictKeyBase(dictKeyBase);
		entity.setFormLength(formLength);
		entity.setFormAddState(formAddState);
		entity.setFormAddType(formAddType);
		entity.setFormAddRequired(formAddRequired);
		entity.setFormAddReadonly(formAddReadonly);
		entity.setFormAddHidden(formAddHidden);
		entity.setFormEditState(formEditState);
		entity.setFormEditType(formEditType);
		entity.setFormEditHidden(formEditHidden);
		entity.setFormEditRequired(formEditRequired);
		entity.setFormEditReadonly(formEditReadonly);
		entity.setImportState(importState);
		entity.setImportSortNo(importSortNo);
		entity.setModalKey(modalKey);
		entity.setModalRelativeCode(modalRelativeCode);
		entity.setModalValueCode(modalValueCode);
		entity.setDropdownRequestPath(dropdownRequestPath);
		entity.setMultyFileSourceType(multyFileSourceType);
		entity.setStatus(status);
		return entity;
	}
}